package com.wenwu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsMWenwu;
import com.wenwu.common.bean.RelicsMWenwuExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsMWenwuMapper extends Dao{
    int countByExample(RelicsMWenwuExample example);

    int deleteByExample(RelicsMWenwuExample example);

    int deleteByPrimaryKey(Integer mRelicsId);

    int insert(RelicsMWenwu record);

    int insertSelective(RelicsMWenwu record);

    List<RelicsMWenwu> selectByExample(RelicsMWenwuExample example);

    RelicsMWenwu selectByPrimaryKey(Integer mRelicsId);

    int updateByExampleSelective(@Param("record") RelicsMWenwu record, @Param("example") RelicsMWenwuExample example);

    int updateByExample(@Param("record") RelicsMWenwu record, @Param("example") RelicsMWenwuExample example);

    int updateByPrimaryKeySelective(RelicsMWenwu record);

    int updateByPrimaryKey(RelicsMWenwu record);
    
    /**
     * 分页条件查询
     * @param relicsMWenwu
     * @param pageVo
     * @return
     */
    List<RelicsMWenwu> selectListByPage(@Param("relicsMWenwu") RelicsMWenwu relicsMWenwu,@Param("pageVo") PaginationVO pageVo);
    
    /**
	 * 分页查询的所有结果总数量
	 * @param relicsMWenwu
	 * @param pageVo
	 * @return
	 */
	int selectTotalRecord(@Param("relicsMWenwu")RelicsMWenwu relicsMWenwu);

	/**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList);
}